<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>my-center</title>
		
		
		<!--我的个人中心-->
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/my-center.css" />

			{{include file="VIEW_PATH/Common/header.php"}}
		
			<!--个人中心开始-->
			<div id="ms-header-menu">
				<div class="ms-header-menu-inner">
					<div class="ms-logo">
						
					</div>
					<div class="ms-nav">
						<ul>
							<li><a class="nav-tou" href="">首页</a></li>
							<li>
								<a class="nav-tou" href="">账户管理</a>
								<em>&nbsp;&nbsp;</em>
								<!--二级菜单-->
								<div id="list-nav-manage">
									<div class="list-nav-manage-lst">
										<p>安全设置</p>
										<p><a href="">修改密码</a></p>
										<p><a href="">邮箱管理</a></p>
									</div>
									<div class="list-nav-manage-lst">
										<p>个人信息</p>
										<p><a href="">地址管理</a></p>
										<p><a href="">我的易付宝</a></p>
									</div>
									<div class="list-nav-manage-lst">
										<p>帐号绑定</p>
										<p><a href="">关联互联号</a></p>
										<p><a href="">易付宝绑定管理</a></p>
									</div>
								</div>
							</li>
							<li><a class="nav-tou" href="">消息</a></li>
						</ul>
						<div class="ms-serch">
							<input type="text" name="" id="" value="" />
							<a class="serch-img" href=""></a>
						</div>
					</div>
					
				</div>
				
			</div>
			<div id="ms-userinfo">
						
			</div>
			<div id="ms-content">
				<!--侧边导航开始-->
				{{include file="VIEW_PATH/Common/left.php"}}
				<!--侧边导航结束-->
				
				<!--主内容开始-->
				<div id="ms-main">
					<div class="order-nav">
						<h2>我的订单:</h2>
						<span>网上订单</span>
					</div>
					<div class="order-main">
						<div class="order-state">
							<div class="order-tab">
								<ul>
									<li>
										<a class="juse" href="{{U('orderList')}}">全部订单</a> 
										<span></span>
									</li>
									<li>
										<a href="{{U('orderList',array('status' => '待付款'))}}">待付款</a> 
										<span>{{$statusGroup['weifukuan']}}</span>
									</li>
									<li>
										<a href="{{U('orderList',array('status' => '待发货'))}}">待发货</a> 
										<span>{{$statusGroup['fahuo']}}</span>
									</li>
									<li>
										<a href="{{U('orderList',array('status' => '待收货'))}}">待收货</a> 
										<span>{{$statusGroup['souhuo']}}</span>
									</li>
									<li>
										<a href="{{U('orderList',array('status' => '待评价'))}}">待评价</a> 
										<span>{{$statusGroup['wancheng']}}</span>
									</li>
								</ul>
							</div>
							<div class="state-select">
								<p>
									<input type="text" name="" id="" value="" />
									<button>搜索订单</button>
								</p>
							</div>
						</div>
						<!--订单主体开始-->
					<div id="order-table">
						<!--表头-->
						<div class="tit-ord">
							<ul>
								<li class="time">
									<h3>近三个月订单</h3>
								</li>
								<li class="price">
									<h3>单价</h3>
								</li>
								<li class="amount">
									<h3>数量</h3>
								</li>
								<li class="goods-operation">
									<h3>商品操作</h3>
								</li>
								<li class="total-price">
									<h3>支付总金额</h3>
								</li>
								<li class="state">
									<h3>订单状态</h3>
								</li>
								<li class="operation">
									<h3>操作</h3>
								</li>
							</ul>
						</div>
						<!--表头结束-->
						<!--订单列表开始-->
						{{foreach from="$orderData" key="$k" value="$v"}}
						<div class="table-box">
							<div class="table-box-left">
								<div class="table-box-left-t">
									<i>下单时间:</i>
									<span>{{date('Y-m-d H:i:s',$v['time'])}}</span>
									<i>订单编号:</i>
									<span>{{$v['number']}}</span>
									<i>-</i>
									<span>苏宁自营</span>
								</div>
								<div class="table-box-left-b">
									<?php $olidArr = array(); ?>
									{{foreach from="$v['lists']" key="$kk" value="$vv"}}
									<div class="table-box-left-b-l">
										<div class="table-box-left-b-l-l">
											<a href=""><img src="{{$vv['pic']}}"/></a>
											<a href="">{{$vv['gname']}} </a>
										</div>
										<div class="table-box-left-b-l-c">
											￥<span>{{$vv['shopprice']}}</span>
										</div>
										<div class="table-box-left-b-l-r">
											<span>{{$vv['quantity']}}</span>
										</div>
									</div>
									<?php
//										获取订单列表的主键组合
										$olidArr[] = $vv['olid'];
									?>
									
									{{endforeach}}
									<div class="table-box-left-b-r">
										<p>￥{{$v['total']}}</p>
										<p>在线支付</p>
									</div>
									<div class="table-box-left-b-r">
										<p>{{$v['status']}}</p>
										<p><a href="{{U('OrderDetail',array('oid' => $v['oid'],'olid' => $olidArr))}}">订单详情</a></p>
										<p><span>配送</span></p>
									</div>
								</div>
							</div>
							
								
							
							<div class="table-box-right">
								{{if value="$v['status'] == '未付款'"}}
								<p><a href="{{U('Pay/index',array('oid' => $v['oid'],'olid' => $olidArr))}}">马上支付</a></p>
								{{endif}}
								{{if value="$v['status'] == '未付款'"}}
								<p><a href="{{U('del',array('oid' => $v['oid'],'olid' => $olidArr))}}">取消订单</a></p>
								{{endif}}
								{{if value="$v['status'] == '已发货'"}}
								<p><a href="{{U('trueGet',array('oid' => $v['oid'],'olid' => $olidArr))}}">确认收货</a></p>
								{{endif}}
								{{if value="$v['status'] == '已完成'"}}
								{{foreach from="$olidArr" $k="$kk" value="$vv"}}
								<p><a href="{{U('evaluate',array('olid' => $vv))}}">评价</a></p>
								{{endforeach}}
								{{endif}}
							</div>
						</div>
						{{endforeach}}
						
						
						
						<!--订单列表结束-->
					</div>
					</div>
				
					
				
				
				</div>
				<!--为您推荐-->
				<div id="wntj">
					<div class="wntj-title">
						<h3>为您推荐</h3>
						<div class="wntj-title-c">
						</div>
						<div class="wntj-title-r">
							<a href="">&lt;</a>
							<ul>
								<li></li>
								<li></li>
								<li></li>
								<li></li>
							</ul>
							<a href="">&gt;</a>
						</div>
					</div>
					
					
					<div id="wntj-content">
						<div class="wntj-content-inner">
							<ul>
								<li>
									<a class="wntj-img" href=""><img src="{{__PUBLIC__}}/Home/img/center/000000000142892730_1_100x100.jpg" alt="" /></a>
									<a class="wntj-words" href="">爱华仕 大容量旅行双肩包 书包背包男包女旅游运动包多用</a>
									<span><b>￥33.33</b></span>
								</li>
								<li>
									<a class="wntj-img" href=""><img src="{{__PUBLIC__}}/Home/img/center/000000000142892730_1_100x100.jpg" alt="" /></a>
									<a class="wntj-words" href="">爱华仕 大容量旅行双肩包 书包背包男包女旅游运动包多用</a>
									<span><b>￥33.33</b></span>
								</li>
								<li>
									<a class="wntj-img" href=""><img src="{{__PUBLIC__}}/Home/img/center/000000000142892730_1_100x100.jpg" alt="" /></a>
									<a class="wntj-words" href="">爱华仕 大容量旅行双肩包 书包背包男包女旅游运动包多用</a>
									<span><b>￥33.33</b></span>
								</li>
								<li>
									<a class="wntj-img" href=""><img src="{{__PUBLIC__}}/Home/img/center/000000000142892730_1_100x100.jpg" alt="" /></a>
									<a class="wntj-words" href="">爱华仕 大容量旅行双肩包 书包背包男包女旅游运动包多用</a>
									<span><b>￥33.33</b></span>
								</li>
								<li>
									<a class="wntj-img" href=""><img src="{{__PUBLIC__}}/Home/img/center/000000000142892730_1_100x100.jpg" alt="" /></a>
									<a class="wntj-words" href="">爱华仕 大容量旅行双肩包 书包背包男包女旅游运动包多用</a>
									<span><b>￥33.33</b></span>
								</li>
								
							</ul>
						</div>
					</div>
				</div>
				
				
				
				<!--为您推荐结束-->
				
				
				
				
				
				<!--主内容结束-->
				<!--侧边导航结束-->
			</div>
			
			
			
			<!--个人中心结束-->
			{{include file="VIEW_PATH/Common/footer.php"}}
</body>
</html>